package com.cos.lession69.common;

import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSource;
import org.apache.ibatis.datasource.pooled.PooledDataSourceFactory;

/**
 * @author: COS
 * @time: 2022/9/23 11:33
 * @description:
 */
public class MyDataSources extends PooledDataSourceFactory {

    public MyDataSources() {
        // 使用德鲁伊覆盖原有的数据源
        this.dataSource = new DruidDataSource();
    }
}
